package edu.ege.thesis.nyt;

/*

 NYTimes API Classes
 
 February, 2009
 blprnt@blprnt.com
 
 NOTE: Make sure you enter your NYTimes Article Search API on the TimesArticleSearch tab.
 
 */


import org.json.*;
import java.util.ArrayList;
public class NYT_API_Classes_export {
public static void main(String args[]) {

TimesArticleSearch s = new TimesArticleSearch();
s.addQueries("terrorism");
s.addFacets("page_facet");
s.addFacetQuery("publication_year", "2001");
TimesArticleSearchResult r = s.doSearch();
TimesFacetObject[] pageFacets = r.getFacetList("page_facet");
System.out.println ("There were " + r.total + " articles.");
System.out.println ("There were " + pageFacets[0].count + " articles on the front page");

};
}

